package com.yunti.springboot.service;

;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yunti.springboot.po.TaskJob;
import com.yunti.springboot.vo.Result;
import com.yunti.springboot.vo.req.TaskJobReq;
import org.quartz.SchedulerException;

/**
 * <p>
 * 定时任务调度表 服务类
 * </p>
 *
 * @author ytt
 * @since 2023-07-06
 */
public interface TaskJobService extends IService<TaskJob> {

    Result getList(TaskJobReq req);

    Result del(TaskJobReq req);

    Result add(TaskJobReq req);

    Result edit(TaskJobReq req);

    Result run(TaskJobReq job);

    Result change(TaskJobReq job);

    int pauseJob(TaskJobReq job) throws SchedulerException;
    int resumeJob(TaskJobReq job) throws SchedulerException;
    int deleteJob(TaskJobReq job) throws SchedulerException;
}
